package cn.hnucm.orderservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author chenjintao
 * @since 2021-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbGoodsOrder对象", description="订单表")
public class TbGoodsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "商品号")
    @TableField("goodsId")
    private Integer goodsId;

    @ApiModelProperty(value = "商品数量")
    @TableField("goodsNum")
    private Integer goodsNum;

    @ApiModelProperty(value = "卖家用户编号")
    @TableField("sellerId")
    private Integer sellerId;

    @ApiModelProperty(value = "买家用户编号")
    @TableField("buyerId")
    private Integer buyerId;

    @ApiModelProperty(value = "订单状态 1:未付款 2:已付款 3:已送达 4:已接收(结束) 5:订单取消")
    @TableField("orderState")
    private Integer orderState;

    @ApiModelProperty(value = "订单设计金额")
    @TableField("orderInvoleValue")
    private Float orderInvoleValue;

    @ApiModelProperty(value = "订单开始时间")
    @TableField("orderStartDatetime")
    private String orderStartDatetime;

    @ApiModelProperty(value = "订单结束时间")
    @TableField("orderEndDatetime")
    private String orderEndDatetime;


}
